package com.central;

import com.central.dataManage.service.IDatasourceService;
import com.central.dataManage.service.impl.DatasourceServiceImpl;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

import java.io.IOException;

/**
 * @author Tindy
 * @date 2022/2/14
 * @describe
 */
@RunWith(SpringRunner.class)
@SpringBootTest(classes = DataManageApp.class, webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT)
public class T {
    @Autowired
    private IDatasourceService datasourceService;
    @Test
    public void t() throws IOException {
        ((DatasourceServiceImpl)datasourceService).createProHdfsUdfDir("pro5");
    }
}
